import {axios} from '@/utils/request'

// api接口列表
const api = {
    page: '/pay/demo/withdraw/page',
    submit: '/pay/demo/withdraw',
    transfer: '/pay/demo/withdraw/transfer'
}

export function page(params) {
    return axios({
        url: api.page,
        method: 'get',
        params
    })
}

export function submit(data) {
    return axios({
        url: api.submit,
        method: 'post',
        data
    })
}

export function transfer(id) {
    return axios({
        url: api.transfer,
        method: 'post',
        params: {id}
    })
}